package wat.serwerapp.admins;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import wat.ziszcommon.invoker.Method;
import wat.serwerapp.usermgmt.UserManager;

/**
 *
 * @author P.B. & L.G. & K.K.
 */
public class RemoveUser implements Method {

   private static Set<String> owners;

   public Set<String> getOwners() {
      if (owners == null) {
         owners = new HashSet<String>();
         owners.add("pl.edu.wat.erp.client.administration.UserAdministrationClient");
      }
      return owners;
   }

   public String invoke(String parameters) {
      UserManager.removeUser(parameters);
      return "OK";
   }

   public List invoke(List parameters) {
      throw new UnsupportedOperationException("Not supported yet.");
   }
}
